﻿using IronBefunge.Core;
using IronBefunge.Core.InstructionHandlers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Spackle;
using Spackle.Testing;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;

namespace IronBefunge.Core.Tests.InstructionHandlers
{
	[TestClass]
	public sealed class TrampolineInstructionHandlerTests : InstructionHandlerTests
	{
		[TestMethod]
		public void Handle()
		{
			var cells = new List<Cell>() { new Cell(new Point(0, 0), '#') };

			InstructionHandlerTests.Run(new TrampolineInstructionHandler(), cells, null, 
				(context, result) =>
				{
					Assert.AreEqual(new Point(0, 1), context.CurrentPosition);
				});
		}
	}
}
